﻿using UnityEngine;
using System.Collections;
using JSON;
using HotNet;
public delegate void DelegateNet(object data);
public delegate void DelegateNetData(NetData data);

public class NetHelper  {
	public static void SendMsg(int command,object data,DelegateNet result,DelegateNet errorResult){
		var json = "";
		if(data is string){
			json = (string)data;
		}else{
			json = JsonUtility.ToJson(json);
		}
		SocketMgr.Instance.SendMsg(command,json,result,errorResult);
	}
	public static void PushMsg(int command,object data){
	
	}
}
